package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_AmazonCategory", catalog="Id")
public class TbAmazonCategory extends BaseEntity<TbAmazonCategory> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="CountryCode", nameJava="countryCode", typeDataBase="varchar")
	private String countryCode;
	@YsField(nameDataBase="BrowseNodeId", nameJava="browseNodeId", typeDataBase="bigint")
	private Long browseNodeId;
	@YsField(nameDataBase="BrowseNodeAttributes", nameJava="browseNodeAttributes", typeDataBase="varchar")
	private String browseNodeAttributes;
	@YsField(nameDataBase="BrowseNodeName", nameJava="browseNodeName", typeDataBase="varchar")
	private String browseNodeName;
	@YsField(nameDataBase="BrowseNodeStoreContextName", nameJava="browseNodeStoreContextName", typeDataBase="varchar")
	private String browseNodeStoreContextName;
	@YsField(nameDataBase="BrowsePathById", nameJava="browsePathById", typeDataBase="varchar")
	private String browsePathById;
	@YsField(nameDataBase="BrowsePathByName", nameJava="browsePathByName", typeDataBase="varchar")
	private String browsePathByName;
	@YsField(nameDataBase="HasChildren", nameJava="hasChildren", typeDataBase="varchar")
	private String hasChildren;
	@YsField(nameDataBase="ChildNodes", nameJava="childNodes", typeDataBase="varchar")
	private String childNodes;
	@YsField(nameDataBase="ProductTypeDefinitions", nameJava="productTypeDefinitions", typeDataBase="varchar")
	private String productTypeDefinitions;
	@YsField(nameDataBase="RefinementsInformation", nameJava="refinementsInformation", typeDataBase="varchar")
	private String refinementsInformation;
	@YsField(nameDataBase="CategoryLevel", nameJava="categoryLevel", typeDataBase="int")
	private Integer categoryLevel;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbAmazonCategory setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public TbAmazonCategory setCountryCode(String countryCode) {
		this.countryCode = countryCode;
		return this;
	}
	public Long getBrowseNodeId() {
		return browseNodeId;
	}
	public TbAmazonCategory setBrowseNodeId(Long browseNodeId) {
		this.browseNodeId = browseNodeId;
		return this;
	}
	public String getBrowseNodeAttributes() {
		return browseNodeAttributes;
	}
	public TbAmazonCategory setBrowseNodeAttributes(String browseNodeAttributes) {
		this.browseNodeAttributes = browseNodeAttributes;
		return this;
	}
	public String getBrowseNodeName() {
		return browseNodeName;
	}
	public TbAmazonCategory setBrowseNodeName(String browseNodeName) {
		this.browseNodeName = browseNodeName;
		return this;
	}
	public String getBrowseNodeStoreContextName() {
		return browseNodeStoreContextName;
	}
	public TbAmazonCategory setBrowseNodeStoreContextName(String browseNodeStoreContextName) {
		this.browseNodeStoreContextName = browseNodeStoreContextName;
		return this;
	}
	public String getBrowsePathById() {
		return browsePathById;
	}
	public TbAmazonCategory setBrowsePathById(String browsePathById) {
		this.browsePathById = browsePathById;
		return this;
	}
	public String getBrowsePathByName() {
		return browsePathByName;
	}
	public TbAmazonCategory setBrowsePathByName(String browsePathByName) {
		this.browsePathByName = browsePathByName;
		return this;
	}
	public String getHasChildren() {
		return hasChildren;
	}
	public TbAmazonCategory setHasChildren(String hasChildren) {
		this.hasChildren = hasChildren;
		return this;
	}
	public String getChildNodes() {
		return childNodes;
	}
	public TbAmazonCategory setChildNodes(String childNodes) {
		this.childNodes = childNodes;
		return this;
	}
	public String getProductTypeDefinitions() {
		return productTypeDefinitions;
	}
	public TbAmazonCategory setProductTypeDefinitions(String productTypeDefinitions) {
		this.productTypeDefinitions = productTypeDefinitions;
		return this;
	}
	public String getRefinementsInformation() {
		return refinementsInformation;
	}
	public TbAmazonCategory setRefinementsInformation(String refinementsInformation) {
		this.refinementsInformation = refinementsInformation;
		return this;
	}
	public Integer getCategoryLevel() {
		return categoryLevel;
	}
	public TbAmazonCategory setCategoryLevel(Integer categoryLevel) {
		this.categoryLevel = categoryLevel;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbAmazonCategory setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbAmazonCategory setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbAmazonCategory setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbAmazonCategory tbAmazonCategory(
		String countryCode,
		Long browseNodeId,
		String browseNodeAttributes,
		String browseNodeName,
		String browseNodeStoreContextName,
		String browsePathById,
		String browsePathByName,
		String hasChildren,
		String childNodes,
		String productTypeDefinitions,
		String refinementsInformation,
		Integer categoryLevel,
		Integer status
			) {
		TbAmazonCategory entity = new TbAmazonCategory();
		entity.setCountryCode(countryCode);
		entity.setBrowseNodeId(browseNodeId);
		entity.setBrowseNodeAttributes(browseNodeAttributes);
		entity.setBrowseNodeName(browseNodeName);
		entity.setBrowseNodeStoreContextName(browseNodeStoreContextName);
		entity.setBrowsePathById(browsePathById);
		entity.setBrowsePathByName(browsePathByName);
		entity.setHasChildren(hasChildren);
		entity.setChildNodes(childNodes);
		entity.setProductTypeDefinitions(productTypeDefinitions);
		entity.setRefinementsInformation(refinementsInformation);
		entity.setCategoryLevel(categoryLevel);
		entity.setStatus(status);
		return entity;
	}
}